Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

replace 'config-yaml/configtxOrgs.json' with 'config-yaml/orgs/[peer/orderer]-[orgName].json #17

Merged
merged 3 commits into from
Dec 7, 2021

Conversation

kth-tw
Copy link
Collaborator

@kth-tw kth-tw commented Dec 7, 2021

PULL REQUEST

說明 (Description)

network create 時會產生 config-yaml/configtxOrgs.json ,在channel create時會成為org的選項
但是 peer create 時,新的peer org 不會被加到這個檔案,導致新組織無法再 channel create 時被選擇

此PR的改成在1個org就是一個檔案,在 network createpeer/orderer create 時都會產生此檔案。
檔案名稱:
舊:config-yaml/configtxOrgs.json
新:config-yaml/orgs/[peer/orderer]-[orgName].json

相關問題 (Linked Issues)

  • 新組織無法在 channel create 時選擇

貢獻種類 (Type of change)

  • Bug fix (除錯 non-breaking change which fixes an issue)
  • New feature (增加新功能 non-breaking change which adds functionality)
  • Breaking change (可能導致相容性問題 fix or feature that would cause existing functionality to not work as expected)
  • Doc change (需要更新文件 this change requires a documentation update)

測試環境 (Test Configuration):
*OS: Ubuntu 20.04.3 LTS (GNU/Linux 5.11.0-1020-gcp x86_64)
*NodeJS Version: v16.13.1
*NPM Version: 8.2.0
*Docker Version: 20.10.9

檢查清單 (Checklist):

  • 我的程式碼遵從此專案的規範 (My code follows the style guidelines of this project)
  • 我有對於自己的程式碼進行測試檢查 (I have performed a self-review of my own code)
  • 我有在程式碼中提供必要的註解 (I have commented my code, particularly in hard-to-understand areas)
  • 我有在文件中進行必要的更動 (I have made corresponding changes to the documentation)
  • 我的程式碼更動沒有顯著增加錯誤數量 (My changes generate no new warnings)
  • 我有新增必要的單元測試 (I have added tests that prove my fix is effective or that my feature works)
  • 我有檢查並更正程式碼錯誤的拼字 (I have checked my code and corrected any misspellings)

我已完成以上清單,並且同意遵守 Code of Conduct

I have completed the checklist and agree to abide by the code of conduct.

  • 同意 (I consent)

@kth-tw
Copy link
Collaborator Author

kth-tw commented Dec 7, 2021

rename 'orgConfigTx' to 'OrgDefinitionJson'
image

src/instance/bdkFile.ts Outdated Show resolved Hide resolved
@kth-tw kth-tw merged commit 0ef417a into cathayddt:master Dec 7, 2021
@kth-tw kth-tw deleted the config-yaml-orgs branch December 15, 2021 02:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants